package com.lywz.web.action.admin.scenic;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.lywz.biz.common.entity.scenic.Scenic;
import com.lywz.web.struts.GZAbstracterAction;

/**
 * 后台基础信息管理Action
 * @author Huad  Luoj Gaoy
 *
 */
public class ScenicBasicAction extends GZAbstracterAction{

    private static final long serialVersionUID = 1382811449936521401L;
    private List<Scenic> scenicList;
    
    private Integer scenicId;
    
    private Integer category=-1;
    private Integer city=-1;
    private Integer level=-1;
    
    public String showScenicList(){
        scenicList=scenicService.getCategoryScenicList(category, city, level);;
        return SUCCESS;
    }
    
    public String deleteOneScenic(){
        scenicService.deleteOneScenic(scenicId);
        return SUCCESS;
    }
    
    public String fetchScenicInfo(){
        scenicService.getOneScenic(scenicId);
        return SUCCESS;
    }
    
    //==getter and setter======================================================
    public List<Scenic> getScenicList() {
        return scenicList;
    }
    
    public void setScenicList(List<Scenic> scenicList) {
        this.scenicList = scenicList;
    }

    
    public Integer getCategory() {
        return category;
    }

    
    public void setCategory(Integer category) {
        this.category = category;
    }

    
    public Integer getCity() {
        return city;
    }

    
    public void setCity(Integer city) {
        this.city = city;
    }

    
    public Integer getLevel() {
        return level;
    }

    
    public void setLevel(Integer level) {
        this.level = level;
    }

    
    public Integer getScenicId() {
        return scenicId;
    }

    
    public void setScenicId(Integer scenicId) {
        this.scenicId = scenicId;
    }
    
}
